<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>网络异常</title>
  <link rel="stylesheet" href="css/error.css">
  <script src="js/viewport.js"></script>
</head>
<body>
  <header class="header">网络异常
    <span class="back" onclick="Comm.close()"></span>
  </header>
  <div class="error-section">
    <span class="error-img"></span>
    <p class="error-text">网络异常</p>
    <p><span class="error-btn" onclick="callNative('weakRelaod');">重新加载</span></p>
  </div>
  <script src="js/z.js"></script>
  <script src="js/g.js"></script>
  <script src="js/comm.js"></script>
<script>
  function callNative(m, d) {
    if (ios()) {
      var data = { method: m + (d == null ? '' : ':') };
      if (d) data['data'] = dataToString(d);
      window.webkit.messageHandlers.WeiLai.postMessage(data);
    }
    else {
      if (window.WeiLai && (typeof window.WeiLai[m] == typeof function () {
      })) {
        if (d == null)
          window.WeiLai[m]();
        else
          window.WeiLai[m](dataToString(d));
      }
    }
  }

  function ios() {
    return window.webkit != null && window.webkit.messageHandlers != null && navigator.userAgent.indexOf('MicroMessenger') <= -1
  }
  function dataToString(o) {
    if (o == null) return '';
    if (typeof (o) == typeof ({}) || typeof (o) == typeof ([])) return JSON.stringify(o);
    return o + '';
  }


  var url = Comm.query("url")?Comm.query("url"):'';
  var urlArr = ["index.html","mainsort.html","car.html","my.html"];

  $(urlArr).each(function(n,v){
    if(url.indexOf(v)>-1){
      $(".header .back").remove()
    }
  })






</script>
</body>
</html>